package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface  OrderSettingDao {
    //添加
    public void add(OrderSetting data);
    //查询当前的时间有没有添加过
    public long findCountByOrderDate(Date orderDate);
//修改对应时间的数据
     void editNumberByOrderDate(OrderSetting orderSetting);
//查询对应时间的数据
     List<OrderSetting> getOrderSettingByMonth(Map map);
//根据时间查询
    OrderSetting findByOrderDate(Date date);
//更新预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
